package org.wu.framework.lazy.orm.database.sql.expand.database.persistence.method;


import lombok.Data;
import lombok.experimental.Accessors;
import org.wu.framework.lazy.orm.core.config.LazyOperationAttribute;
import org.wu.framework.lazy.orm.database.sql.expand.database.persistence.method.interceptor.SqlInterceptorAdapter;
import org.wu.framework.lazy.orm.database.sql.expand.database.persistence.translation.adapter.LazyTranslationAdapter;

/**
 * LazyOperation 需要的参数
 */
@Accessors(chain = true)
@Data
public class LazyOperationParameter {
    private LazyOperationAttribute lazyOperationAttribute; // 配置信息
    private SqlInterceptorAdapter sqlInterceptorAdapter; // sql 拦截器
    /**
     * 跨表转译适配器
     */
    private LazyTranslationAdapter lazyTranslationAdapter;

    public LazyOperationParameter() {
    }
    public LazyOperationParameter(LazyOperationAttribute lazyOperationAttribute, SqlInterceptorAdapter sqlInterceptorAdapter, LazyTranslationAdapter lazyTranslationAdapter) {
        this.lazyOperationAttribute = lazyOperationAttribute;
        this.sqlInterceptorAdapter = sqlInterceptorAdapter;
        this.lazyTranslationAdapter = lazyTranslationAdapter;
    }

}
